import request from '@/utils/request';

export async function queryRule(params) {
    const limit = params.pageSize;
    const page = params.current;
    const my_params = {
        limit: limit,
        page: page,
    };
    Object.assign(params, my_params);
    delete params.current;
  delete params.pageSize;
    return request('/pay/payThird/page', {
        params,
    });
}
export async function removeRule(params) {
    return request(`/pay/payThird/${params}`, {
        method: 'DELETE',
    });
}
export async function addRule(params) {
    return request('/pay/payThird', {
        method: 'POST',
        data: {
            ...params,
        },
    });
}
export async function updateRule(params) {
    return request('/pay/payThird', {
        method: 'PUT',
        data: {
            ...params
        },
    });
}